<?php
include_once (_CORE_PATH . "Lib/minifier/HTML.php");
include_once (_CORE_PATH . "Lib/minifier/CSS.php");
include_once (_CORE_PATH . "Lib/minifier/Javascript.php");

class Mozg_Lib_Minifier implements Mozg_Lib
{
    public function MinifyHTML($content, $isJsParse = true, $isCssParse = true)
    {
	    return Minify_HTML::minify($content, array(
			        'cssMinifier' => $isCssParse ? array('Minify_CSS', 'minify') : false,
			        'jsMinifier' => $isJsParse ? array('Minify_Javascript', 'minify') : false
            ));
    }

    public function MinifyJS($content)
    {
	    return Minify_Javascript::minify($content);
    }

    public function MinifyCSS($content)
    {
	    return Minify_CSS::minify($content);
    }
}